package controller;

import model.Memory;
import model.MinCommandSet;

public class ConfigController {
	private ConfigController() {

	}

	private static final ConfigController instance = new ConfigController();

	private MinCommandSet minSet;

	public static ConfigController getInstance() {
		return instance;
	}

	public void setupMemory(String name, int width, int opcodeWidth) {
		minSet = MinCommandSet.getMinCommandSet(name);
		Memory.setup(minSet, width, opcodeWidth);
	}

	public String[] getMinCommandSets() {
		return MinCommandSet.getMinCommandSets();
	}

	public MinCommandSet getMinCommandSet() {
		return minSet;
	}

}
